<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
<body>

<script src="../js/util.js"></script>

颜色JS 演示：(先引用JS，再使用)
<hr>
1. 分值的演示

页面使用代码：
<textarea>   <span id="fen1"><script>getFenColor(0.7,'fen1')</script></span>   </textarea>

<hr>

<span id="fen1"><script>getFenColor(0.3,'fen1')</script></span>
<br>
<span id="fen2"><script>getFenColor(0.4,'fen2')</script></span>
<br>
<span id="fen3"><script>getFenColor(0.6,'fen3')</script></span>
<br>
<span id="fen4"><script>getFenColor(1,'fen4')</script></span>


<hr>
2. 状态演示
<hr>

页面使用代码：
<textarea>   <span id="s1"><script>getStateColor('S3','s1')</script></span>  </textarea>
<br>
<span id="s1"><script>getStateColor('S0','s1')</script></span>
<br>
<span id="s2"><script>getStateColor('S1','s2')</script></span>
<br>
<span id="s3"><script>getStateColor('S2','s3')</script></span>
<br>
<span id="s4"><script>getStateColor('S3','s4')</script></span>
<br>
<span id="s5"><script>getStateColor('S4','s5')</script></span>
<br>
<span id="s6"><script>getStateColor('S5','s6')</script></span>
<br>
<hr>

3. OKR类别JS调用演示
<hr>

页面使用代码：
<textarea>   <span id="s1"><script>getOkrType('T1','t1')</script></span>  </textarea>
<br>
<span id="t1"><script>getOkrType('T1','t1')</script></span>
<br>
<span id="t2"><script>getOkrType('T2','t2')</script></span>
<br>
<span id="t3"><script>getOkrType('T3','t3')</script></span>
<br>
<span id="t4"><script>getOkrType('T4','t4')</script></span>
<br>




</body>
	
